<?php

namespace system\Controller;

class ControllersInfoController extends SystemAppController {

    protected $controller_name = "ControllersInfo";

    public function indexAction(){
        $this->index();
    }

    public function addAction()
    {
        if(!$this->request->is("post")){
            $this->set("modulos", $this->_model->getModulos());
            $this->set("controllers", $this->_model->getControllers());
        }
        $this->add();
    }

    public function editAction($id)
    {
        if(!$this->request->is("post")){
            $this->set("modulos", $this->_model->getModulos());
            $this->set("controllers", $this->_model->getControllers());
        }
        $this->edit($id);
    }

    public function viewAction($id){
        $this->view($id);
    }

    public function delAction(){
        $this->del();
    }

    

}